.\" (c) 1998-2018 by Columbia University; all rights reserved
.\" (c) 2017-2018 by Jan Stary <hans@stare.cz>
.\"
.\" SPDX-License-Identifier: BSD-3-Clause
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.Dd June 25, 2018
.Dt RTPSEND 1
.Os
.Sh NAME
.Nm rtpsend
.Nd generate RTP packets from textual description
.Sh SYNOPSIS
.Nm
.Op Fl ahlv
.Op Fl f Ar infile
.Op Fl s Ar port
.Oo Ar address Oc Ns / Ns Ar port Ns Op / Ns Ar ttl
.Sh DESCRIPTION
.Nm
reads a stream of RTP and RTCP packets in a textual format produced by
.Xr rtpdump 1 Ns 's
.Cm ascii
or
.Cm hex
or
.Cm rtcp
from standard input and resends the traffic to the given
.Ar address Ns / Ns Ar port ,
optionally with a given value of
.Ar ttl .
The
.Ar address
defaults to
.Dq localhost .
The port number must be an even number.
The input file can also be written manualy,
allowing for hand-crafted packets.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl a
Include a router alert IP option in RTCP packets.
This is used by the YESSIR resource reservation protoccol.
.It Fl f Ar infile
Read the packets from the given
.Ar infile
instead of standard input.
.It Fl h
Display a short usage summary and exit.
.It Fl l
Send the same sequence of packets again and again.
This only works if the input is read from a regular file
instead of the standard input.
See the
.Fl f
option.
.It Fl s Ar port
Send the packets from the given
.Ar port .
By default,
.Nm
chooses a random port.
.El
.Sh SEE ALSO
.Xr rtpdump 1 ,
.Xr rtpplay 1
.Sh AUTHORS
.An -nosplit
.Nm
was written by
.An Henning Schulzrinne Aq Mt hgs@cs.columbia.edu ,
with enhancements by
.An Ping Pan ,
.An Akira Tsukamoto Aq Mt akira.tsukamoto@gmail.com ,
.An Jan Stary Aq Mt hans@stare.cz ,
and
.An Jan Janak Aq Mt janakj@cs.columbia.edu .
